import axios from '@/utils/axios'

//分页查询学生信息
export function queryStudentAPI(data) {
  return axios.post('/api/user/user-client/cms/studentInfo/queryStudentPage', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
//删除学生信息
export function deleteStudentAPI(id) {
  return axios.post(`/api/user/user-client/cms/studentInfo/deleteStudent?id=${id}`)
}

//新增学生信息
export function addStudentAPI(data) {
  return axios.post('/api/user/user-client/cms/studentInfo/addStudent', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//编辑学生信息
export function updateStudentAPI(data) {
  return axios.post('/api/user/user-client/cms/studentInfo/updateStudent', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
